package com.edward.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

@Entity
public class Receivable {
	
	private int id;
	
	private String name;
	
	private double recei;
	
	private double prepay;
	
	private Date date;
	
	private String content;
	
	private double rbalance;
	
	private double dbalance;
	
	private String clerk;
	
	private String remark;
	
	private String type;
	
	private String state;
	
	private Date endDate;

	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getRecei() {
		return recei;
	}

	public void setRecei(double recei) {
		this.recei = recei;
	}

	public double getPrepay() {
		return prepay;
	}

	public void setPrepay(double prepay) {
		this.prepay = prepay;
	}

	@Temporal(TemporalType.DATE)
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public double getRbalance() {
		return rbalance;
	}

	public void setRbalance(double rbalance) {
		this.rbalance = rbalance;
	}

	public double getDbalance() {
		return dbalance;
	}

	public void setDbalance(double dbalance) {
		this.dbalance = dbalance;
	}

	public String getClerk() {
		return clerk;
	}

	public void setClerk(String clerk) {
		this.clerk = clerk;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@Transient
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

}
